import { defineStore} from "pinia";
import { ref } from "vue";


export const useUserStore = defineStore('oss_user', () => {
    const token = ref('')
    const name = ref('')

    const setToken = (newToken) => {
      token.value = newToken
    }
    const setName = (newName) => {
        name.value = newName
    }
    return {
        token,
        setToken,
        name,
        setName,
    }
}, {
    persist: true
})
